package Ch4;

/**
 * Created by Cai Ye on 2016/3/25.
 */
public class OceanWorld4Seaplane extends OceanWorld4Airplane implements OceanWorld1Swimmer {
    public OceanWorld4Seaplane(String name) {
        super(name);
    }

    @Override
    public void fly() {
        System.out.print("海上");
        super.fly();
    }

    @Override
    public void swim() {
        System.out.printf("海上飞机 %s 航行海面%n", name);
    }
}
